package entity;

import org.codehaus.jackson.annotate.JsonProperty;

/**
 * Created by cdxuhongya on 2016/9/5.
 */
public class User {

    @JsonProperty("user_name")
    private String name;
    @JsonProperty("user_age")
    private Integer age;

    public User() {
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {

        return "[name = " + name + ",age = "+ age +"]";
    }
}
